cmake_minimum_required(VERSION 3.16.0)

project(Solver)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# include(./FindGUROBI.cmake)
# include_directories(${GUROBI_INCLUDE_DIRS})
# include_directories(${CMAKE_CURRENT_SOURCE_DIR}/inc)

set(SOURCE_DIR "${PROJECT_SOURCE_DIR}/src")
set(INCLUDE_DIR "${PROJECT_SOURCE_DIR}/inc")

file(GLOB SOURCES "${SOURCE_DIR}/*.cpp")
file(GLOB HEADERS "${INCLUDE_DIR}/*.hpp")

# include_directories(
#  ${GUROBI_INCLUDE_DIRS}
# )

aux_source_directory(${SOURCE_DIR} src)
aux_source_directory(${INCLUDE_DIR} inc)

add_executable(Solver ${SOURCES} ${HEADERS})

#target_link_libraries(Solver 
#  ${GUROBI_LIBRARIES}
#)

target_include_directories(Solver PRIVATE ${SOURCE_DIR} ${INCLUDE_DIR})
